/*
 * Copyright (c) 2009 Nathaniel Houghton <nathan@brainwerk.org>
 *                    Robert Kirchgessner <rkirchge@gmail.com>
 *
 * Permission to use, copy, modify, and distribute this software for
 * any purpose with or without fee is hereby granted, provided that
 * the above copyright notice and this permission notice appear in all
 * copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA
 * OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 * PERFORMANCE OF THIS SOFTWARE.
 *
 */
 
#ifndef CMD_H
#define CMD_H
 
#define WORD_LEN 20
#define WC 5

struct cmd {
	int argc;
	char *argv[WC];
};

void parse_line(struct cmd *);
void config_mode_cmd(struct cmd *);
void read_cmd(struct cmd *);
void erase_nvm_cmd(void);
void echo_cmd(struct cmd *);
void read_cfg_cmd(struct cmd *);
void write_cfg_cmd(struct cmd *);
void read_log_cmd(struct cmd *);
void num_dtc_cmd(struct cmd *);
void set_livemode_cmd(struct cmd *);
 
#endif
